package dao

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name     string `json:"name" gorm:"type:varchar(30);not null;comment:'姓名'"`
	Password string `json:"password" gorm:"type:varchar(30);not null;comment:'密码'"`
	Mobile   string `json:"mobile" gorm:"type:varchar(11);not null;comment:'联系方式'"`
	TicketId int    `json:"ticketId" gorm:"type:int(11);comment:'票id'"`
}

type Ticket struct {
	gorm.Model
	TicketName  string `json:"ticketName" gorm:"type:varchar(50);not noll;comment:'票名'"`
	TicketNum   int    `json:"ticketNum" gorm:"type:int(10);not null;comment:'票的数量'"`
	TicketIntro string `json:"ticketIntro" gorm:"type:varchar(100);not null;comment:'票描述'"`
}
